/*
 * pwmGen.h
 *
 *  Created on: Sep 5, 2020
 *      Author: Administrator
 */

#ifndef INC_PWMGEN_H_
#define INC_PWMGEN_H_

#include "stm32f1xx_hal.h"

//#if (USE_HAL_TIM_REGISTER_CALLBACKS != 1)
//#define USE_HAL_TIM_REGISTER_CALLBACKS 1
//#endif

extern uint16_t PWMNum;
extern uint16_t PWMNum2;
extern TIM_HandleTypeDef htim3;
extern TIM_HandleTypeDef htim4;
extern uint8_t stepper_1_flag;
extern uint8_t stepper_2_flag;

void setPWMNum(unsigned int num, TIM_HandleTypeDef *htim);

#endif /* INC_PWMGEN_H_ */
